package com.sdy.mvc.controller;

import com.sdy.mvc.utils.HttpUtil;
import lombok.extern.slf4j.Slf4j;

import javax.servlet.http.HttpServletRequest;

/**
 * Created by zzq on 2017-08-28.
 */
@Slf4j
public class BaseController {

	protected Integer getUserId(HttpServletRequest request) {
		return HttpUtil.getUserId(request);
	}

	protected Integer getUserId(HttpServletRequest request, String sessionKey) {
		return HttpUtil.getUserId(request, sessionKey);
	}

}
